<?php

class billing_model extends CI_Model {

	public function __construct()
	{
		parent::__construct();
		$this->load->database();
	}
	
	public function insert_order($data)
	{
		$this->db->insert('order', $data);
		
		$id = $this->db->insert_id();
		
		return (isset($id)) ? $id : FALSE;

	}
	
	public function insert_order_item($data)
	{
		$this->db->insert('order_item', $data);
	}
}